package sk.vrto.service.email;

import java.util.Properties;

/**
 * Factory for providing email properties for known hosts.
 */
public class SmtPropertiesFactory {

    private SmtPropertiesFactory() {} // static factory class

    public static Properties gmailProperties() {
        Properties props = new Properties();
        props.setProperty("mail.smtp.auth", "true");
        props.setProperty("mail.smtp.starttls.enable", "true");
        props.setProperty("mail.smtp.host", "smtp.gmail.com");
        props.setProperty("mail.smtp.port", "587");
        return props;
    }

    public static Properties hotmailProperties() {
        Properties props = new Properties();
        props.setProperty("mail.smtp.auth", "true");
        props.setProperty("mail.smtp.starttls.enable", "true");
        props.setProperty("mail.smtp.host", "smtp.live.com");
        props.setProperty("mail.smtp.port", "587");
        return props;
    }

}
